import Vue from 'vue'
import Router from 'vue-router'
import caseList from '@/views/case/caseList'
import caseInfo from '@/views/case/caseInfo'
import declareList from '@/views/declare/declareList'
import declareInfo from '@/views/declare/declareInfo'
import login from '@/views/user/login'
import register from '@/views/user/register'
import forget from '@/views/user/forget'
import declare from '@/views/declare/declare'
import info from '@/views/user/info'
import profile from '@/views/user/profile'
import setting from '@/views/user/setting'
import bank from '@/views/user/bank'
import address from '@/views/user/address'
import userDeclares from '@/views/user/userDeclares'
import home from '@/views/home/home'
import noticeList from '@/views/notice/noticeList'
import noticeInfo from '@/views/notice/noticeInfo'
import userNotices from '@/views/user/userNotices'
import messageList from '@/views/message/messageList'
import messageInfo from '@/views/message/messageInfo'
import personalInfo from '@/views/user/personalInfo'
import referral from "@/views/user/referral"
import collections from "@/views/user/collections"
import feedback from "@/views/user/feedback"
import about from "@/views/user/about"
import myReferral from "@/views/user/myReferral"
import activityRules from '@/views/user/activityRules'
import meetingList from "@/views/meeting/meetingList"
import meetingInfo from "@/views/meeting/meetingInfo"
import modelInfo from "@/views/model/modelInfo"

Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/declare',
      redirect: '/declare/home'
    },
    {
      path: '/',
      redirect: '/declare/home'
    }, {
      path: '/declare/caseList',
      name: 'caseList',
      component: caseList
    },
    {
      path: '/declare/caseInfo',
      name: 'caseInfo',
      component: caseInfo
    },
    {
      path: '/declare/declareList',
      name: 'declareList',
      component: declareList
    }, {
      path: '/declare/login',
      name: 'login',
      component: login
    },
    {
      path: '/declare/register',
      name: 'register',
      component: register
    }, {
      path: '/declare/forget',
      name: 'forget',
      component: forget
    }, {
      path: '/declare/declare',
      name: 'declare',
      component: declare
    }, {
      path: '/declare/declareInfo',
      name: 'declareInfo',
      component: declareInfo
    }, {
      path: '/declare/info',
      name: 'info',
      component: info
    }, {
      path: '/declare/profile',
      name: 'profile',
      component: profile
    }, {
      path: '/declare/setting',
      name: 'setting',
      component: setting
    }, {
      path: '/declare/bank',
      name: 'bank',
      component: bank
    }, {
      path: '/declare/address',
      name: 'address',
      component: address
    }, {
      path: '/declare/userDeclares',
      name: 'userDeclares',
      component: userDeclares
    }, {
      path: '/declare/home',
      name: 'home',
      component: home
    }, {
      path: '/declare/noticeList',
      name: 'noticeList',
      component: noticeList
    }, {
      path: '/declare/noticeInfo',
      name: 'noticeInfo',
      component: noticeInfo
    }, {
      path: '/declare/userNotices',
      name: 'userNotices',
      component: userNotices
    }, {
      path: '/declare/messageList',
      name: 'messageList',
      component: messageList
    }, {
      path: '/declare/messageInfo',
      name: 'messageInfo',
      component: messageInfo
    }, {
      path: '/declare/personalInfo',
      name: 'personalInfo',
      component: personalInfo
    }, {
      path: '/declare/referral',
      name: 'referral',
      component: referral
    }, {
      path: '/declare/collections',
      name: 'collections',
      component: collections
    }, {
      path: '/declare/feedback',
      name: 'feedback',
      component: feedback
    }, {
      path: '/declare/about',
      name: 'about',
      component: about
    }, {
      path: '/declare/myReferral',
      name: 'myReferral',
      component: myReferral
    }, {
      path: '/declare/activityRules',
      name: 'activityRules',
      component: activityRules
    }, {
      path: '/declare/meetingInfo',
      name: 'meetingInfo',
      component: meetingInfo
    }, {
      path: '/declare/meetingList',
      name: 'meetingList',
      component: meetingList
    }, {
      path: '/declare/model',
      name: 'modelInfo',
      component: modelInfo
    }
  ]
})
